<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/10/27
 * Time: 15:45
 */
namespace app\api\model;

class User extends BaseModel {

//    protected $autoWriteTimestamp = true;

    public static function getByOpenId($openId){
        return self::get(['openid'=>$openId]);
    }
}